package com.wuxia.config;

import com.wuxia.domain.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName Myconfiguration
 * @Description: TODO
 * @Author lijin
 * @Date 2020/6/10
 * @Author 740393778@qq.com
 * @Version V1.0
 **/
@Configuration
public class Myconfiguration {

    @Bean
    public Person person(){
        Person p=new Person();
        p.setId(30);
        p.setName("lijin");
        return  p;
    }

}
